﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DarkovConsoleProjekat
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] dim = { 2, 3 };
            AtomicTypes.QBoolean[] dat = { new AtomicTypes.QBoolean(true),
                                         new AtomicTypes.QBoolean(true),
                                         new AtomicTypes.QBoolean(false),
                                         new AtomicTypes.QBoolean(false),
                                         new AtomicTypes.QBoolean(true),
                                         new AtomicTypes.QBoolean(true)};
            Memory_Access.QBooleanArray qba = new Memory_Access.QBooleanArray(dat, dim);
            Memory_Access.QFloat64Array qfa = new Memory_Access.QFloat64Array(qba);
            for (int i=0 ; i<dim[0]; i++)
                for (int j = 0; j < dim[1]; j++)
                {
                    Console.WriteLine("qba["+i+","+j+"]="+qfa[i,j]);
                }

            Console.WriteLine(" ");
            AtomicTypes.QUInt64[] datUInt = { new AtomicTypes.QUInt64(15, 26),
                                                new AtomicTypes.QUInt64(3),
                                                new AtomicTypes.QUInt64(15, 11),
                                                new AtomicTypes.QUInt64(4),
                                                new AtomicTypes.QUInt64(10, 6),
                                                new AtomicTypes.QUInt64(3)};
            Memory_Access.QUInt64Array qia = new Memory_Access.QUInt64Array(datUInt, dim);
            for (int i = 0; i < dim[0]; i++)
                for (int j = 0; j < dim[1]; j++)
                {
                    Console.WriteLine("qia[" + i + "," + j + "]=" + qia[i, j]);
                }

            Memory_Access.QInt64Array qia1 = new Memory_Access.QInt64Array(qia);
            for (int i = 0; i < dim[0]; i++)
                for (int j = 0; j < dim[1]; j++)
                {
                    Console.WriteLine("qia1[" + i + "," + j + "]=" + qia1[i, j]);
                }
            Console.ReadKey();
        }
    }
}
